package org.csu.question.entity.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class KnowledgePointDTO {
    private Long id;

    @NotBlank(message = "知识点名称不能为空")
    private String name;

    private String description;

    @NotBlank(message = "标签不能为空")
    private String tag;

    private Long parentId;
    private String parentName;

    private Integer questionCount; // 题目数量
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}

